﻿using System;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace GSSoftSL.Web.Models
{
    public partial class DiemDanhCTInfo : INotifyPropertyChanged 
    {
        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
        
        private string _maHV;
        [DataMember]
        public string MaHV
        {
            get
            {
                return _maHV;
            }
            set
            {
                if (_maHV == value)
                {
                    return;
                }
                _maHV = value;
                NotifyPropertyChanged("MaHV");
            }
        }
        
        private DateTime _ngaySinh;
        [DataMember]
        public DateTime NgaySinh
        {
            get
            {
                return _ngaySinh;
            }
            set
            {
                if (_ngaySinh == value)
                {
                    return;
                }
                _ngaySinh = value;
                NotifyPropertyChanged("NgaySinh");
            }
        }
        
        private string _hoTen;
        [DataMember]
        public string HoTen
        {
            get
            {
                return _hoTen;
            }
            set
            {
                if (_hoTen == value)
                {
                    return;
                }
                _hoTen = value;
                NotifyPropertyChanged("HoTen");
            }
        }
        
        private bool _coPhep;
        [DataMember]
        public bool CoPhep
        {
            get
            {
                return _coPhep;
            }
            set
            {
                if (_coPhep == value)
                {
                    return;
                }
                _coPhep = value;
                NotifyPropertyChanged("CoPhep");
            }
        }
        
        private string _lyDo;
        [DataMember]
        public string LyDo
        {
            get
            {
                return _lyDo;
            }
            set
            {
                if (_lyDo == value)
                {
                    return;
                }
                _lyDo = value;
                NotifyPropertyChanged("LyDo");
            }
        }
        
        private bool _vang;
        [DataMember]
        public bool Vang
        {
            get
            {
                return _vang;
            }
            set
            {
                if (_vang == value)
                {
                    return;
                }
                _vang = value;
                NotifyPropertyChanged("Vang");
            }
        }

        public DiemDanhCTInfo CreateCopy()
        {
            DiemDanhCTInfo copy = new DiemDanhCTInfo();
            copy._maHV = _maHV;
            copy._hoTen = _hoTen;
            copy._vang = _vang;
            copy._ngaySinh = _ngaySinh;
            copy._coPhep = _coPhep;
            copy._lyDo = _lyDo;
            return copy;
        }
    }
}